package com.example.lin.homework_yjj_login.activity;

import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.example.lin.homework_yjj_login.R;

public class GuidanceActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        SharedPreferences sp = getSharedPreferences("firstStart", MODE_PRIVATE);
        sp.edit().putBoolean("isFirst", false).commit();

        setContentView(R.layout.activity_guidance);
    }

    public void goNow(View view) {
        startActivity(new Intent(this, LoginActivity.class));
        finish();
    }

}
